{extend name='common/content' /}

{block name="button"}
<!-- <div class="nowrap pull-right" style="margin-top:10px">
    {if auth("$classuri/add")}
    <button data-modal='{:url("$classuri/add")}' data-title="添加地区" class='layui-btn layui-btn-small'><i
            class='fa fa-plus'></i> 添加地区
    </button>
    {/if}
    {if auth("$classuri/del")}
    <button data-update data-field='delete' data-action='{:url("$classuri/del")}'
            class='layui-btn layui-btn-small layui-btn-danger'><i class='fa fa-remove'></i> 删除地区
    </button>
    {/if}
</div> -->
{/block}

{block name="content"}
<script type="text/javascript" src="__STATIC__/admin/jquery.drug.js" charset="utf-8"></script>

<form onsubmit="return false;" data-auto="" method="POST">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>
                <!--<input data-none-auto="" data-check-target='.list-check-box' lay-skin="primary" lay-filter="allChoose" type="checkbox">-->
                <!-- <input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/> -->
            </th>
            <!-- <th class='text-center'>排序</th> -->
            <th class='text-center'>地区名称</th>
            <!-- <th class='text-center'>大区名称</th>
            <th class='text-center'>是否开启</th>
            <th class='text-center'>操作</th> -->
            <th>统计</th>
        </tr>
        </thead>
        <tbody>

        {foreach $list as $key=>$vo}
        <tr>
            <td style="width:10px;">
                <!--<input class="list-check-box" value='{$vo.area_id}' lay-skin="primary" type="checkbox">-->
                <!-- <input class="list-check-box" value='{$vo.ids}' type='checkbox'/> -->
                <img fieldid="{$vo.area_id}" status="open" nc_type="flex" src="__STATIC__/admin/theme/default/img/tv-expandable.gif">
            </td>
<!--             <td class="list-table-sort-td">
                <input class="list-sort-input" name="area_sort.{$vo.area_id}" value="{$vo.area_sort|default=0}" />
            </td> -->
            <td style="width:200px;" class="text-center nowrap">
                <!-- <input class='layui-input layui-input-inline' style='height:28px;line-height:28px;width:auto' name="area_name.{$vo.area_id}" value="{$vo.area_name|default=''}" /> -->
                <span>{$vo.area_name|default=''}</span>
            </td>
            <td class=" nowrap">
                <span>{$vo.drug.catname}数：<a style="color:red;" href="{$vo.drug.url}">{$vo.drug.total|default='0'}</a>个；</span>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</form>


<script>window.form.render();</script>
<script>
    layui.use('form', function(){
        var form = layui.form;

    });
</script>
{if auth("$classuri/add")}
<!-- <script>
    $(function () {
        $('input.title-input').on('blur', function () {
            $.form.load('{:url("save")}', {name: this.name, value: this.value}, 'POST', function (ret) {
                return false;
            });
        });
    })
</script> -->
{/if}

{/block}